﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="editarRoteiroTeste2.aspx.cs" Inherits="editarRoteiroTeste2" Title="Edição de roteiro de teste - Platinum Project - Projeto 2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="tabelaCadastros.ascx" TagName="tabelaCadastros" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
    <cc1:TabContainer ID="TabContainer1" runat="server">
        <cc1:TabPanel ID="TabPanelPaginaInicial" runat="server" HeaderText="P&#225;gina Inicial">
                    <HeaderTemplate>
                <asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Font-Names="Verdana"
                    Font-Size="Small" NavigateUrl="inicio.aspx">Início</asp:HyperLink>
            </HeaderTemplate>
            <ContentTemplate>
                <asp:Label runat="server" Text="Bem vindo ao Platinum Test,  um portal para a execu&#231;&#227;o de testes de usabilidade."
                    Font-Size="Small" Font-Names="Verdana" ID="LabelDescricao"></asp:Label>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabPanelCadastros" runat="server" HeaderText="Cadastro">
                    <HeaderTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="Verdana"
                    Font-Size="Small" NavigateUrl="cadastros.aspx">Cadastro</asp:HyperLink>
            </HeaderTemplate>
            <ContentTemplate>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 200px" valign="top">
                            <uc1:tabelaCadastros ID="TabelaCadastros1" runat="server" />
                        </td>
                        <td valign="top">
                            <span style="font-size: 1em; font-family: Verdana">
                            </span><table>
                                <tr>
                                    <td colspan="5">
                                        <asp:Label ID="LabelTitulo" runat="server" Font-Bold="True" Font-Names="Verdana"
                                            Font-Size="Medium" Style="left: -99px; top: -77px" Text="Edição de roteiro de teste"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 347px; height: 20px">
                                    </td>
                                    <td style="height: 20px">
                                    </td>
                                    <td style="height: 20px">
                                    </td>
                                    <td style="width: 100px; height: 20px">
                                    </td>
                                    <td style="width: 100px; height: 20px">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <asp:Label ID="LabelObservacao" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            Style="left: -99px; top: -77px" Text="Atenção: campos marcados com "></asp:Label><asp:Label
                                                ID="Label8" runat="server" Font-Names="Verdana" Font-Size="Small" ForeColor="Red"
                                                Text="*"></asp:Label>
                                        <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="Small" Text="são obrigatórios!"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 347px">
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="width: 100px">
                                    </td>
                                    <td style="width: 100px">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="height: 5px">
                                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="Small"
                                            Style="left: -99px; top: -77px" Text="2º passo: associação de tarefas"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 347px">
                                    </td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Font-Bold="False" Font-Names="Verdana" Font-Size="Small"
                                            Style="left: -99px; top: -77px" Text="Tarefas a serem feitas no teste:" Width="196px"></asp:Label></td>
                                    <td colspan="2">
                                    </td>
                                    <td style="width: 100px">
                                        <asp:Label ID="Label5" runat="server" Font-Bold="False" Font-Names="Verdana" Font-Size="Small"
                                            Style="left: -99px; top: -77px" Text="Tarefas que não serão feitas no teste:" Width="158px"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td rowspan="4" style="width: 347px">
                                        <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="Small" Style="left: -99px;
                                            top: -77px" Text="Tarefas:"></asp:Label>
                                        <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="Small" ForeColor="Red"
                                            Text="*" style="left: 2px; position: relative; top: 2px"></asp:Label>
                                        <asp:Label ID="Label7" runat="server" Font-Names="Verdana" Font-Size="Small" ForeColor="Red"
                                            Style="z-index: 100; left: 481px; position: relative; top: 511px" Text="*"></asp:Label></td>
                                    <td rowspan="4">
                                        <asp:ListBox ID="ListBoxTarefasFazer" runat="server" Rows="8" SelectionMode="Multiple"
                                            TabIndex="1" Width="185px" DataSourceID="ObjectDataSource1" DataTextField="descricao" DataValueField="id"></asp:ListBox></td>
                                    <td style="height: 21px;" colspan="2">
                                        <asp:Button ID="ButtonAdicionar" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            OnClick="ButtonAdicionar_Click" TabIndex="3" Text="<<" Width="50px" /></td>
                                    <td rowspan="4" style="width: 100px">
                                        <asp:ListBox ID="ListBoxTarefasEscolher" runat="server"
                                            OnSelectedIndexChanged="ListBoxTarefasEscolher_SelectedIndexChanged" Rows="8"
                                            SelectionMode="Multiple" TabIndex="2" Width="185px" DataSourceID="ObjectDataSource2" DataTextField="descricao" DataValueField="id" AutoPostBack="True"></asp:ListBox>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Button ID="ButtonRemover" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            OnClick="ButtonRemover_Click" TabIndex="4" Text=">>" Width="50px" /></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Button ID="ButtonCima" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            TabIndex="5" Text="↑" OnClick="ButtonCima_Click" Width="50px" /></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Button ID="ButtonAbaixo" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            TabIndex="6" Text="↓" Width="50px" OnClick="ButtonAbaixo_Click" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 347px; height: 26px">
                                    </td>
                                    <td colspan="4" style="height: 26px">
                                        &nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 347px; height: 26px">
                                    </td>
                                    <td style="height: 26px">
                                        <asp:Button ID="ButtonCadastrar" runat="server" Font-Names="Verdana" Font-Size="Small"
                                            OnClick="ButtonCadastrar_Click" TabIndex="7" Text="Próximo >>" /></td>
                                    <td style="height: 26px">
                                    </td>
                                    <td style="width: 100px; height: 26px">
                                    </td>
                                    <td style="width: 100px; height: 26px">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 347px">
                                    </td>
                                    <td colspan="4">
                                        <asp:Label ID="LabelConfirmacao" runat="server" Font-Bold="True" Font-Names="Verdana"
                                            Font-Size="Small"></asp:Label></td>
                                </tr>
                            </table>
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getTarefasAssociadasRoteiroTeste"
                                TypeName="FacadeService">
                                <SelectParameters>
                                    <asp:SessionParameter Name="idRoteiro" SessionField="idRoteiro" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="getTarefasNaoAssociadasRoteiroTeste"
                                TypeName="FacadeService">
                                <SelectParameters>
                                    <asp:SessionParameter Name="idRoteiro" SessionField="idRoteiro" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </cc1:TabPanel>
                <cc1:TabPanel ID="TabPanelConsultas" runat="server" HeaderText="Consulta">
                    <HeaderTemplate>
                <asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Names="Verdana"
                    Font-Size="Small" NavigateUrl="consultas.aspx">Consulta</asp:HyperLink>
            </HeaderTemplate>
            <ContentTemplate>
                
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabPanelExecucaoTestes" runat="server" HeaderText="Execu&#231;&#227;o de testes"
            Enabled="False">
        </cc1:TabPanel>
    </cc1:TabContainer>
    
</asp:Content>

